home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / gnused.zip / GNUSED / GETPAGSZ.H < prev    next >
C/C++ Source or Header  |  1992-11-06  |  689b  |  37 lines

  1. /* TimF@microsoft.com:    19-MAR-92  Port to Microsoft's Windows NT (tm) */
  2.  
  3. #ifdef BSD
  4. #ifndef BSD4_1
  5. #define HAVE_GETPAGESIZE
  6. #endif
  7. #endif
  8.  
  9. #ifndef HAVE_GETPAGESIZE
  10.  
  11. #ifdef VMS
  12. #include "param.h"
  13. #else
  14. #ifndef    WINDOWSNT
  15. #include <sys/param.h>
  16. #endif    /* !WINDOWSNT */
  17. #endif
  18.  
  19. #ifdef EXEC_PAGESIZE
  20. #define getpagsz() EXEC_PAGESIZE
  21. #else
  22. #ifdef NBPG
  23. #define getpagsz() NBPG * CLSIZE
  24. #ifndef CLSIZE
  25. #define CLSIZE 1
  26. #endif /* no CLSIZE */
  27. #else /* no NBPG */
  28. #ifdef    WINDOWSNT
  29. #define getpagsz()    4096
  30. #else /* !WINDOWSNT */
  31. #define getpagsz() NBPC
  32. #endif /* !WINDOWSNT */
  33. #endif /* no NBPG */
  34. #endif /* no EXEC_PAGESIZE */
  35.  
  36. #endif /* not HAVE_GETPAGESIZE */
  37.